import React from 'react'

interface ProfilePageFunctionMeta {
    user: string
}

const ProfilePageFunction: React.FC<ProfilePageFunctionMeta> = (props) => {
    const showMessage = () => {
        alert('Follow ' + props.user)
    }
    const handleClick = () => {
        setTimeout(showMessage, 3000)
    }
    return (
        <button onClick={handleClick}>Follow Function</button>
    )
}

export default ProfilePageFunction